/**
 * Created by VIET on 3/20/2015.
 */
$(function(){

});

function practice(){

}

practice.prototype.reverseNumber = function(values){
    // Match all are numbers
    var pattern = /^\d*$/g;
    var result;
    if(pattern.test(values)){
        do{
            result = (result * 10 )+ (values % 10);
            values = values/10;
        }while(values != 0)
    }
    return result;
}